﻿using Lee.Utility.Extensions;

namespace ConsoleApp.Gof.MapFunction
{
    public class GrantTypeSerive
    {
        public int GetRedPaperList(string resourceId)
        {
            List<int> list = new();
            list.Add(1);
            list.Add(2);
            list.Add(3);

            return list.FirstOrDefault(c => c == resourceId.ParseToInt());
        }

        public string redPaper(string resourceId)
        {
            //红包的发放方式
            var ret =  GetRedPaperList(resourceId);

            return "每周末9点发放" + ret;
        }

        public string shopping(string resourceId)
        {
            var ret = GetRedPaperList(resourceId);
            //购物券的发放方式
            return "每周三9点发放" + ret;
        }

        public string QQVip(string resourceId)
        {
            var ret = GetRedPaperList(resourceId);
            //qq会员的发放方式
            return "每周一0点开始秒杀" + ret;
        }
    }
}